package com.somsoft.handjc.activity;

import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;

import com.somsoft.handjc.util.BaseActivity;

public class MainMenuActivity extends BaseActivity {

	private Button btnXzsp = null;
	private Button btnXzzf = null;
	private Button btnGgzy = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		requestWindowFeature(Window.FEATURE_NO_TITLE); 
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.mainmenu);
		
		btnXzsp = (Button)findViewById(R.id.btnXzsp);
		btnXzzf = (Button)findViewById(R.id.btnXzzf);
		btnGgzy = (Button)findViewById(R.id.btnGgzy);
		
		btnXzsp.setOnClickListener(new OnClickListenerImplXzsp());
		btnXzzf.setOnClickListener(new OnClickListenerImplXzzf());
		btnGgzy.setOnClickListener(new OnClickListenerImplGgzy());
	}

	private class OnClickListenerImplXzsp implements OnClickListener{
 		@Override
		public void onClick(View v) {
//			Intent it = new Intent(MainMenuActivity.this,MainMenuActivity.class);
//			startActivity(it);
 			new  AlertDialog.Builder(MainMenuActivity.this)    
 			.setTitle("信息" )   
 			.setMessage("系统开发中" )   
 			.setPositiveButton("确定" ,  null )   
 			.show(); 
		}
	}
	
	private class OnClickListenerImplXzzf implements OnClickListener{
 		@Override
		public void onClick(View v) {
			Intent it = new Intent(MainMenuActivity.this,MainActivity.class);
			startActivity(it);
		}
	}
	
	private class OnClickListenerImplGgzy implements OnClickListener{
 		@Override
		public void onClick(View v) {
//			Intent it = new Intent(MainMenuActivity.this,MainMenuActivity.class);
//			startActivity(it);
 			new  AlertDialog.Builder(MainMenuActivity.this)    
 			.setTitle("信息" )   
 			.setMessage("系统开发中" )   
 			.setPositiveButton("确定" ,  null )   
 			.show(); 
		}
	}
}
